package org.lb.MarketingSystem.dao;

import java.util.List;

import org.lb.MarketingSystem.entity.Position;
import org.springframework.stereotype.Component;

@Component(value="positionMapperDao")
public interface PositionMapperDao {
	//职位
	public String selectPositionNameByPoId(Integer positionId);  //根据职位ID查询职位名字
	public void insertPosition(Position position);   //插入职位到职位表
	public void updatePosition(Position position);   //修改职位表信息
	public void dropPosition(Integer positionId);   //根据职位ID删除职位表信息
	public List<Position> select_allPosition();     //查询职位表所有职位
	public List<Integer> selectUsersIdByPositionId(Integer positionId);  //根据职位ID得到所有用户的ID
	public Integer  selectPositionIdByPositionName(String PositionName);   //根据职位名得到职位id
	
}
